<template>
  <div>
    <!-- 字典类型显示标签配置 -->
    <ColumnDitSetting v-if="showTagSet" :value="value"> </ColumnDitSetting>
  </div>
</template>

<script>
import ColumnDitSetting from "./__components__/ColumnDitSetting";
import basicmixins from "../basicmixins";
import { getHmdictionaryOptions } from "@/apis/paas/HmDictionaryController.js";
export default {
  components: { ColumnDitSetting },
  mixins: [basicmixins],
  data() {
    return {};
  },
  computed: {
    showTagSet() {
      return this.value.relationType === "DICTIONARY";
    },
  },
  watch: {
    "value.code": {
      async handler(val) {
        if (val && this.showTagSet) {
          if (!this.value.showType) {
            this.$set(this.value, "showType", "text");
          }
        }
      },
      immediate: true,
    },
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="scss"></style>
